/*  1:   */ package org.intellij.images.editor.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import org.intellij.images.editor.ImageEditor;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public final class ImageEditorManagerImpl
/*  9:   */ {
/* 10:   */   @NotNull
/* 11:   */   public static ImageEditor createImageEditor(@NotNull Project paramProject, @NotNull VirtualFile paramVirtualFile)
/* 12:   */   {
/* 13:40 */     if (paramProject == null) {
/* 14:40 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/images/editor/impl/ImageEditorManagerImpl", "createImageEditor" }));
/* 15:   */     }
/* 16:40 */     if (paramVirtualFile == null) {
/* 17:40 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/intellij/images/editor/impl/ImageEditorManagerImpl", "createImageEditor" }));
/* 18:   */     }
/* 19:40 */     void tmp89_86 = new ImageEditorImpl(paramProject, paramVirtualFile);
/* 20:40 */     if (tmp89_86 == null) {
/* 21:40 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/images/editor/impl/ImageEditorManagerImpl", "createImageEditor" }));
/* 22:   */     }
/* 23:40 */     return tmp89_86;
/* 24:   */   }
/* 25:   */   
/* 26:   */   public static void releaseImageEditor(@NotNull ImageEditor paramImageEditor)
/* 27:   */   {
/* 28:49 */     if (paramImageEditor == null) {
/* 29:49 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/images/editor/impl/ImageEditorManagerImpl", "releaseImageEditor" }));
/* 30:   */     }
/* 31:49 */     if (!paramImageEditor.isDisposed()) {
/* 32:50 */       paramImageEditor.dispose();
/* 33:   */     }
/* 34:   */   }
/* 35:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.images.editor.impl.ImageEditorManagerImpl

 * JD-Core Version:    0.7.0.1

 */